/*
* @Author: steven.wang
* @Date:   2019-03-21 13:53:57
* @Last Modified by:   steven.wang
* @Last Modified time: 2019-05-13 14:40:10
*/
import request from '@/utils/request'
/**
 * 查询所有国家
 * @author steven.wang
 * @DateTime 2019-03-21T13:55:16+0800
 */
export const getDivide = query => {
    return request({
        url: '/crawler/divide/list',
        method: 'get',
        params: query
    })
}
/**
 * 根据省份ID获取其城市列表
 * @author steven.wang
 * @DateTime 2019-03-21T17:26:06+0800
 */
export const getCitysByProvinceCode = query => {
    return request({
        url: '/crawler/divide/city',
        method: 'get',
        params: query
    })
}
/**
 * 根据城市code获取县/区列表
 * @author steven.wang
 * @DateTime 2019-03-22T14:45:09+0800
 */
export const getCountysByCityCode = query => {
    return request({
        url: '/crawler/divide/county',
        method: 'get',
        params: query
    })
}
/**
 * 根据县/区code获取乡镇列表
 * @author steven.wang
 * @DateTime 2019-03-22T15:24:58+0800
 */
export const getTownsByCountyCode = query => {
    return request({
        url: '/crawler/divide/town',
        method: 'get',
        params: query
    })
}
/**
 * 根据乡镇code获取社区列表
 * @author steven.wang
 * @DateTime 2019-03-22T15:38:31+0800
 */
export const getVillagesByTownCode = query => {
    return request({
        url: '/crawler/divide/village',
        method: 'get',
        params: query
    })
}